package com.schoolcloud.social.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;

/**
 * 贴吧等级表
 * @TableName forum_level_rules
 */
@TableName(value ="forum_level_rules")
@Data
public class ForumLevelRules implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * 等级
     */
    @TableField(value = "level")
    private String level;

    /**
     * 升级到该等级所需的最低经验
     */
    @TableField(value = "min_experience")
    private Integer minExperience;

    /**
     * 该等级的最高经验，仅用于最高级可设为nul
     */
    @TableField(value = "max_experience")
    private Integer maxExperience;

    /**
     * 新手、进阶者、贴吧大神（与等级对应）
     */
    @TableField(value = "title")
    private String title;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
